<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>管理员登录</title>
  <link rel="stylesheet" href="css/Login.css"> <!-- 引入样式表 -->
</head>
<body>
<div class="login-container">
  <h2>管理员登录</h2>

  <!-- 显示错误信息（如果有） -->
  <c:if test="${not empty errorMessage}">
    <p class="error-message">${errorMessage}</p>
  </c:if>

  <!-- 登录表单 -->
  <form action="adminLogin" method="post">
    <div class="form-group">
      <label for="username">用户名：</label>
      <input type="text" id="username" name="username" required>
    </div>

    <div class="form-group">
      <label for="password">密码：</label>
      <input type="password" id="password" name="password" required>
    </div>

    <div class="form-group">
      <button type="submit">登录</button>
    </div>
  </form>
</div>
</body>
</html>
